home *** CD-ROM | disk | FTP | other *** search
- Path: cs.chalmers.se!chalmers.se!sunic!mcsun!uunet!europa.eng.gtefsd.com!gatech!concert!sas!mozart.unx.sas.com!walker
- From: walker@twix.unx.sas.com (Doug Walker)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: SAS/C V6.x's break disabling
- Message-ID: <C3KwBF.D6u@unx.sas.com>
- Date: 8 Mar 93 16:26:03 GMT
- References: <1993Mar8.064632.15929@sfu.ca>
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Organization: SAS Institute Inc.
- Lines: 37
- Originator: walker@twix.unx.sas.com
- Nntp-Posting-Host: twix.unx.sas.com
-
-
- In article <1993Mar8.064632.15929@sfu.ca>, samy@fraser.sfu.ca (Sam Yee) writes:
- |> I can't seem to disable SAS/C V6.x's breaking.
- |> Here is roughly what I have:
- |> ---------------------
- |> #include <stdio.h>
- |>
- |> int CXBRK(void){return(0);} /* disables ^C break? */
- |> int chkabort(void){return(0);}
-
- The names have changed in V6.0 in order to comply with the
- ANSI restrictions on non-ANSI library function names. Use
- the following:
-
- int __chkabort(void){return 0;}
-
- Note that you will need to make sure that this gets compiled
- with registerized parameters as well; the easiest thing is
- to simply compile with PARMS=REG. You could also add the
- __regargs keyword:
-
- int __regargs __chkabort(void){return 0;}
-
- but then you also need to add it to the prototype in
- include:dos.h if you include that file.
-
- Note also that the new name for CXBRK is _CXBRK, but you do not
- need to define it if you redefine __chkabort correctly.
-
- --
- *****
- =*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
- *|. o.| || 1200/2400/9600 Dual
- | o |// For all you do, this bug's for you!
- ======
- usenet: walker@unx.sas.com bix: djwalker
- Any opinions expressed are mine, not those of SAS Institute, Inc.